package com.ssii.www.myproject.repository;

import com.ssii.www.myproject.domain.System;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface SystemRepository extends BaseRepository<System,Long>  {

  @Query("select o from  System o where o.name like ?1")
  List<System> findSystemsByName(String name);

  @Query("select o from System o where o.scode like ?1")
  List<System> findSystemsByScode(String scode);

  @Query("select o from System o where o.version like ?1")
  List<System> findSystemsByVersion(String version);
}
